package com.wowudi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wowudi.entity.Equipment;
import com.wowudi.mapper.EquipmentMapper;
import com.wowudi.service.EquipmentService;
@Service
public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment> implements EquipmentService{

    @Autowired
    private EquipmentMapper equipmentMapper;

    /**
    * Description: 根据科室id查询设备信息<br/>
    * date: 2022-3-31<br/>
    * @author 贺同志<br/>
    */
    @Override
    public List<Equipment> findEquipmentByDcpId(Integer dcpId) {
        QueryWrapper<Equipment> wrapper = new QueryWrapper<>();
        wrapper.eq("dpc_id",dcpId);
        return equipmentMapper.selectList(wrapper);
    }
}
